{extend name='layout/main'}
{block name='style'}
<meta name="referrer" content="always">
{/block}
{block name="body"}
<main class="main">
    <section class="spotlight parallax bg-cover bg-size--cover" data-spotlight="fullscreen"
             style="background-image: url('__ROOT__/assets/images/backgrounds/home-bg.png')">
        <div class="spotlight-holder py-lg pt-lg-xl">
            <div class="container align-items-center no-padding">
                <form method="post" action="{:__u('reg')}">
                    <div class="form-group">
                        <label for="username">手机号码</label>
                        <input name="username" type="text" class="form-control" id="username">
                    </div>
                    <div class="form-group">
                        <label for="realname">真实姓名</label>
                        <input name="realname" type="text" class="form-control" id="realname">
                    </div>
                    <div class="form-group">
                        <label for="inputPassword">密码</label>
                        <input name="password" type="password" class="form-control" id="inputPassword">
                    </div>
                    <div class="form-group">
                        <label for="repassword">重复密码</label>
                        <input name="repassword" type="password" class="form-control" id="repassword">
                    </div>
<!--                    <input type="hidden" value="{$openid}">-->
                    <div class="form-group d-flex justify-content-around pt-sm">
                        <button type="submit" class="btn btn-primary">注册</button>
                        <a href="{:__u('index')}" type="submit" class="btn btn-facebook">登录</a>
                    </div>

                </form>
                {if $Request.get.message}
                <div class="alert alert-danger" role="alert">
                    {$Request.get.message}
                </div>
                {/if}
            </div>
        </div>
    </section>
</main>
{/block}

{block name='script'}
<script>
    {if $url !== ''}
    location.href= '{$url|raw}';
    {/if}
</script>
{/block}